package com.lanou3g;

public class Main {

	public static void main(String[] args) {
		Man man = new Man("浩克",30,"男");
		Woman woman = new Woman("黑寡妇",29,"女");
		Child child = new Child("绿蜘蛛",10,"男");
		// 男女结婚
		man.setWife(woman);
		woman.setHusband(man);
		// 生孩子
		man.setSon(child);
		woman.setSon(child);
		// 孩子会说话了叫爸妈
		child.setFather(man);
		child.setMother(woman);
		
		// 各司其职
		man.work();
		woman.cook();
		child.study();
		
		// 他们是幸福的一家人
		Family family = new Family();
		family.setFather(man);
		family.setMother(woman);
		family.setSon(child);
		
		family.travel();
	}

}
